﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>Login</title>
	<link rel="icon" href="https://jscdn.com.cn/highcharts/images/favicon.ico">
	<meta charset="utf-8">
	<link th:href="@{/css/style2.css}" rel='stylesheet' type='text/css' />
</head>
<body>
	 <!-----start-main---->

	 <div class="main">

		<div class="login-form">

			<h1>后台登录</h1>
				<div class="head">
					<img src="/img/lxc.png" alt=""/>

				</div>
				<form th:action="@{/login}" th:method="post">
					<input type="text" class="text" name="userName" required >
					<input type="password" name="userPwd" required>
					<div class="submit">
						<input type="submit" name="submit" value="登录" >
					</div>
					<!--
					th:if="${not #strings.isEmpty(loginFail)}" 判断后台传递的loginFail是否为非空
					当条件成立在P标签里面显示“loginFail”对应的值
					-->
					<p style="color:red"
					   th:if="${not #strings.isEmpty(loginFail)}"
					   th:text="${loginFail}">
					</p>
				</form>
		</div>
		 	<div class="copy-right">
				<p><a target="_blank" href="https://blog.csdn.net/qq_45511798?spm=1000.2115.3001.5343">&copy; author：冯宝宝</a></p>
			</div>
		</div>
</body>
</html>